package fx.mine.active.component.translate.api;

import com.dtflys.forest.Forest;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;

public class Test {
    public static void main(String[] args) {
        TranslateAPI client = Forest.client(TranslateAPI.class);
        String s = client.googleTranslate("你吃了吗", "en", "zh-CN");

        Document document = Jsoup.parse(s);
        Elements select = document.select("body > div.root-container > div.result-container");
        String s1 = select.get(0).childNode(0).outerHtml();
        System.out.println(s1);
    }
}
